

from core.himesis import Himesis
import cPickle as pickle
from uuid import UUID

class HOneStation(Himesis):
    def __init__(self):
        """
        Creates the himesis graph representing the AToM3 model HOneStation.
        """
        # Flag this instance as compiled now
        self.is_compiled = True
        
        super(HOneStation, self).__init__(name='HOneStation', num_nodes=9, edges=[])
        
        # Add the edges
        self.add_edges([(0, 5), (5, 1), (0, 6), (6, 2), (3, 7), (7, 0), (4, 8), (8, 0)])
        # Set the graph attributes
        self["mm__"] = pickle.loads("""(lp1
S'SimpleDSLTransMM'
p2
a.""")
        self["name"] = """OneStation"""
        self["GUID__"] = UUID('42695929-ba82-40e6-a60b-059f1ab4294a')
        
        # Set the node attributes
        self.vs[0]["mm__"] = """Station_S"""
        self.vs[0]["name"] = """s4"""
        self.vs[0]["GUID__"] = UUID('81189aac-c650-45ea-871f-441ed5b5a3a9')
        self.vs[1]["mm__"] = """Female_S"""
        self.vs[1]["name"] = """f7"""
        self.vs[1]["GUID__"] = UUID('d6951543-8d26-4e05-a0bb-c3430d7ba92c')
        self.vs[2]["mm__"] = """Female_S"""
        self.vs[2]["name"] = """f8"""
        self.vs[2]["GUID__"] = UUID('5d4f81bb-e2f6-44f8-a083-7f4b2900d21d')
        self.vs[3]["mm__"] = """Male_S"""
        self.vs[3]["name"] = """m7"""
        self.vs[3]["GUID__"] = UUID('00b1961a-7ec9-4ca8-8f6b-e69518445230')
        self.vs[4]["mm__"] = """Male_S"""
        self.vs[4]["name"] = """m8"""
        self.vs[4]["GUID__"] = UUID('6057ac61-ea56-44c7-9931-ef4b1d6b58a2')
        self.vs[5]["mm__"] = """directLink_S"""
        self.vs[5]["GUID__"] = UUID('d915539b-1fe1-4b2a-a9d3-efef262857aa')
        self.vs[6]["mm__"] = """directLink_S"""
        self.vs[6]["GUID__"] = UUID('4fbcdd9b-fcf3-4a28-a47d-4db62ba36317')
        self.vs[7]["mm__"] = """directLink_S"""
        self.vs[7]["GUID__"] = UUID('d411cb8b-0c32-4a85-aff2-4f117eb2820e')
        self.vs[8]["mm__"] = """directLink_S"""
        self.vs[8]["GUID__"] = UUID('9d02b8ff-a5a6-4c9b-bd98-71e75228667d')

